home *** CD-ROM | disk | FTP | other *** search
/ Amiga Games Extra 1996 June / Amiga Games Extra 1996 #6.iso / userbox / publicdomain / gnutar / source.lzh / source / sasinclude / sys / wait.h < prev   
C/C++ Source or Header  |  1995-09-16  |  813b  |  40 lines

  1. #ifndef _WAIT_
  2. #define _WAIT_
  3.  
  4.  /* unimplemented signals yet... */
  5.  
  6. #include <signal.h>
  7.  
  8. #define SIGPIPE SIG_MAX
  9.  
  10.  
  11. #ifndef AMIGA_UNIX_NETWORK
  12.  
  13. /* #define    S_IFCHR        0000000 */
  14. /* #define    S_IFBLK     0000000 */
  15.  
  16. #define    S_ISUID        0000000  /* SAS/C misses these */
  17. #define    S_ISGID        0000000
  18. #define    S_ISVTX        0000000
  19.  
  20. #else
  21.  
  22. /* #define    S_IFCHR        0020000 */
  23. /* #define    S_IFBLK     0000000 */ /* ?! */
  24.  
  25. #define    S_ISUID        0004000  /* SAS/C misses these */
  26. #define    S_ISGID        0002000
  27. #define    S_ISVTX        0001000
  28.  
  29. #endif /* AMIGA_UNIX_NETWORK */
  30.  
  31. #define WIFSTOPPED(w) (((w) & 0xff) == 0x7f)
  32. #define WIFSIGNALED(w) (((w) & 0xff) != 0x7f && ((w) & 0xff) != 0)
  33. #define WIFEXITED(w) (((w) & 0xff) == 0)
  34.  
  35. #define WSTOPSIG(w) (((w) >> 8) & 0xff)
  36. #define WTERMSIG(w) ((w) & 0x7f)
  37. #define WEXITSTATUS(w) (((w) >> 8) & 0xff)
  38.  
  39. #endif /* _WAIT_ */
  40.